package cn.kongwg.jvmse;

import java.util.Random;

/**
 * @author kongwg
 * @create 2021-05-13 10:59
 */
public class JvmDemo {
    public static void main(String[] args) {
//        System.out.println(Runtime.getRuntime().availableProcessors());
//        long maxMemory = Runtime.getRuntime().maxMemory();
//        long totalMemory = Runtime.getRuntime().totalMemory();
//        System.out.println("maxMemory = " + maxMemory/1024/1024);
//        System.out.println("totalMemory = " + totalMemory/1024/1024);


        String str = "kksjflsjdlfjlsd";
        while (true) {
            str +=str +new Random().nextInt(888888888) + new Random().nextInt(999999999);
        }

       // byte[] bytes = new byte[40* 1024* 1024];
    }
}
